package com.liangsui.mss.dto;

import com.liangsui.mss.domain.SimpleUser;

import java.io.Serializable;

/**
 * BaseDto
 *
 * @author zhangjiawei
 * @email 1533167396@qq.com
 * @date 2022/12/2 17:20
 */
public class BaseDto implements Serializable {
    /**
     * 页码 默认1
     */
    private Integer pageNum = 1;

    /**
     * 每页显示条数 默认10
     */
    private Integer pageSize = 10;

    /**
     * 当前操作对象
     */
    private SimpleUser simpleUser;

    /**
     * 开始时间
     * 接收前台转换到后台
     */
    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String beginTime;
    /**
     * 结束时间
     * 接收前台转换到后台
     */
    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;


    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public SimpleUser getSimpleUser() {
        return simpleUser;
    }

    public void setSimpleUser(SimpleUser simpleUser) {
        this.simpleUser = simpleUser;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "BaseDto{" +
                "pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", simpleUser=" + simpleUser +
                ", beginTime=" + beginTime +
                ", endTime=" + endTime +
                '}';
    }
}
